package com.ylcode.libback.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Book implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long bookId;
    private String bookName;
    private String bookIsbn;    //图书标准ISBN
    private String bookPress;
    private String bookAuthor;
    private Integer bookPagination; //图书页数
    private Double bookPrice;
    private LocalDateTime bookUploadTime;  //图书上架时间
    private String bookStatus;
    private String bookBorrower;    //图书借阅人
    private LocalDateTime bookBorrowTime;  //图书借阅时间
    private LocalDateTime bookReturnTime;  //图书预计归还时间
}
